<?php

namespace app\admin\validate;

use think\Validate;

class Statistics extends Validate
{
    protected $rule = [
        'title' => 'require|max:50',
        'scope_type' => 'in:province,city,school',
        'region_mode' => 'in:self,children',
        'teach_mode' => 'in:all,offline,online',
        'status' => 'in:0,1'
    ];
}